
    def test_{{ function }}(self):
        """ {{summary}} """
        payloads = {
            {% for item in parameters %}"{{item.name}}": "",
            {% endfor %}
        }
        {% for key, value in responses.items() %}
        response = self.client.{{ method }}(reverse("{{ operationId }}", [{% for parent in parent_parameters %}"#{{parent.name}}"{% endfor %}]), {{ submit }}=payloads)
        self.assertEqual(response.status_code, {{key}}, response.text)  # add assertion here

        schema = schema_ref({{ value.schema | schemaFilter }})
        {% if value.schema %}self.assertTrue(validate(schema, response.json()), response.text){% endif %}
        {% endfor %}
    # END:{{ function }}